package com.finance.expensrem;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class HomeActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_home, menu);
        return true;
    }
    
    /** Called when the user clicks the calendar button */
    public void CalendarActivity(View view) {
        // Do something in response to button event
    	
    	Intent intent = new Intent(this, CalendarActivity.class);
    	startActivity(intent);
    }
    
    /** Called when the user clicks the income button */
    public void IncomeActivity(View view) {
        // Do something in response to button event
    	
    	Intent intent = new Intent(this, IncomeActivity.class);
    	startActivity(intent);
    }
    
    /** Called when the user clicks the expenses button */
    public void ExpensesActivity(View view) {
        // Do something in response to button event
    	
    	Intent intent = new Intent(this, ExpensesActivity.class);
    	startActivity(intent);
    }
    
    /** Called when the user clicks the budget button */
    public void BudgetActivity(View view) {
        // Do something in response to button event
    	
    	Intent intent = new Intent(this, BudgetActivity.class);
    	startActivity(intent);
    }
    
    /** Called when the user clicks the calculator button */
    public void CalculatorActivity(View view) {
        // Do something in response to button event
    	
    	Intent intent = new Intent(this, CalculatorActivity.class);
    	startActivity(intent);
    }

    /** Called when the user clicks the reports button */
    public void ReportsActivity(View view) {
        // Do something in response to button event
    	
    	Intent intent = new Intent(this, ReportsActivity.class);
    	startActivity(intent);
    }
}
